<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}/js/public/Validform/css/Validform.css"/>
<link rel="stylesheet" type="text/css" href="${ctx}/js/public/Validform/css/right_yz.css"/>
 <script type="text/javascript" src="${ctx}/js/jquery-1.7.1.min.js"></script>
 <script language="JavaScript" type="text/javascript" src="${ctx}/js/public/Validform/Validform_v5.3.2.js"></script>
 <script language="JavaScript" type="text/javascript" src="${ctx}/js/public/Validform/right_Validform_v5.3.2_config.js"></script>
 <script type="text/javascript" src="${ctx}/js/ajaxfileupload.js"></script>
 <script type="text/javascript" src="${ctx}/js/extjs/ext-base.js"></script>
<script type="text/javascript" src="${ctx}/js/extjs/ext-all.js"></script>
<script type="text/javascript" src="${ctx}/js/extjs/ui/ext-ui.js"></script>
<script type="text/javascript" src="${ctx}/js/public/console.js"></script>
<script type="text/javascript" src="${ctx}/js/extjs/ux/Toast.js"></script>
<script>
var cfg = {cxt:'${ctx}'};
<c:if test="${not empty entity}">
	<c:set var="url" value="member/update.action"/>
</c:if>
<c:if test="${ empty entity}">
<c:set var="url" value="member/add.action"/>
</c:if>
</script>
</head>
<body>
<div  id="table_form_div" class="table_form1">
<form  action="${ctx}/${url}" method="post" id="formobj" enctype="multipart/form-data">
 <input type="hidden" id="subBtn"   />
 <input type="hidden" id="backTip"  value="操作成功" />
  <table class="table-form" width="100%">
   <tbody>
      <tr>
	       <td width="15%" class="table-th">姓名<font color="red">*</font></td>
	       <td class="table-td" width="35%">
	           <input type="text" id="name"  class="input-text" style="width:90%;" name="name" value="${entity.name}" maxlength="16"   datatype="*" />
	       </td>
	        <td  width="15%" class="table-th">性别<font color="red">*</font></td>
           <td class="table-td"  width="35%">
           		<span style="margin:15px;">
                 <input type="radio" name="gender" id="gender1" value="1" <c:if test="${entity.gender==1||empty entity.gender }">checked</c:if>  />  男
                </span>
                <span style="margin:15px;">
                 <input type="radio" name="gender" id="gender2" value="2" <c:if test="${entity.gender==2 }">checked</c:if>  >  女
                 </span>
           </td>
	  </tr>
	  <tr>
	       <td  width="15%" class="table-th">出生日期<font color="red">*</font></td>
            <td class="table-td" style="white-space: nowrap;" width="15%">
               <span id="birthDay" ></span>
                <input type="hidden"   id="hid_birthDay" value="${entity.birthDay}"/>
           </td>
    　		  <td rowspan="8" colspan="2" align="center">
    		<img src="<c:if test='${not empty entity.photo}'>${ctx}/upload/${entity.photo}</c:if>
	         <c:if test='${empty entity.photo}'>${ctx}/images/organ/nophoto.gif </c:if>" id="img_photo" style="width: 90%;height:350px;"><br>
	         <input type="file"  id="photoFile" name="file" style="display:none" />
	         <input type="hidden" name="photo" id="hid_photo"  value="${entity.photo }" />
	         <div id="photo_div"/>
    	  </td>
	  </tr>
	  　
      <tr>
      	  <td  width="15%" class="table-th">身份证</td>
	      <td class="table-td"  width="35%"> 
	       	<input type="text" id=idNo  class="input-text" style="width:90%;" name="idno" value="${entity.idno}" maxlength="18"   datatype="idcard" ignore="ignore"  />
	      </td>
	  </tr>
	   <tr>
   			<td width="15%" class="table-th">联系电话</td>
            <td class="table-td"  width="35%">
           		<input type="text" id="contractPhone"  class="input-text" name="contractPhone"  style="width:90%;" value="${entity.contractPhone}" maxlength="16" datatype="m|phone"/>
            </td>
      </tr>
      <tr>
           <td width="15%" class="table-th">家庭电话</td>
           <td class="table-td"  width="35%">
               <input type="text" id="homePhone"  class="input-text" style="width:90%;" name="homePhone" value="${entity.homePhone}" maxlength="16" datatype="m|phone" ignore="ignore"  />
           </td>
      </tr>
	  <tr>
	      <td width="15%" class="table-th">所在单位<font color="red">*</font></td>
	      <td class="table-td" width="35%">
	      	<input type="hidden" id="companyId" name="company.id" value="${entity.company.id }" />
	           <input type="hidden" id="copmanyName"   value="${entity.company.name }" />
	       		<span id="sp_company"/>
	      </td>
	   </tr>
	   <tr>
	      <td width="15%" class="table-th">岗位</td>
	      <td class="table-td" width="35%">
	      	<input type="text" class="input-text" style="width:90%;" name="dutyPost" vlaue="${entity.dutyPost }"/>
	      </td>
      </tr>
      <tr>
	      <td  width="15%" class="table-th">人员状态</td>
	           <td class="table-td"  width="35%">
		        <select id='status' name='status'  style="width:80%;">
	        	  	<option value='' >-----请选择-----</option>
	        	    <option value="1" selected="selected">正式人员 </option>
	        	  	<option value="2" >实习人员</option>	
	        	  	<option value="3" >离职人员</option> 
		         </select>
	       </td>
	  </tr>
      <tr>
          <td  width="15%" class="table-th">人员类型<font color="red">*</font></td>
          <td class="table-td"  width="35%">
	          	<select id='type' name='type'  style="width:80%;" datatype="*">
	        	  	<option value='' >-----------请选择---------</option>
	        	    <option value="1"  <c:if test="${empty entity.type ||entity.type==1 }"> selected="selected"</c:if>>驾驶员 </option>
	        	  	<option value="2" <c:if test="${entity.type==2 }"> selected="selected" </c:if >>押运员 </option>
	        	  	<option value="3"  <c:if test="${entity.type==3 }"> selected="selected" </c:if >>安管员</option>
	        	  	<option value="4"  <c:if test="${entity.type==4 }"> selected="selected" </c:if >>装卸管理员</option>
	        	  	<option value="5"  <c:if test="${entity.type==5 }"> selected="selected" </c:if >>主要负责人</option>	 
		         </select>
           </td> 
      </tr>
      <tr id="tr_driverLiceseNum" <c:choose><c:when test="${empty entity.type || entity.type==1 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
           <td  width="15%" class="table-th">驾驶证号<font color="red">*</font></td>
           <td class="table-td"  width="35%">
           		<input type="text" class="input-text" style="width:90%;" id="driverLiceseNum"  name="driverLiceseNum" value="${entity.driverLiceseNum }"/>
           </td>
           
           <td  width="15%" class="table-th">驾驶证号有效期<font color="red">*</font></td>
            <td class="table-td"  width="35%">
       	 		<span id="sp_driverLiceseNumValidity" ></span>
            	<input type="hidden"   id="hid_driverLiceseNumValidity" value="${entity.driverLiceseNumValidity}"/>
         	</td>	
          
       </tr>
       <tr id="tr_driverQuaCertNum" <c:choose><c:when test="${empty entity.type || entity.type==1 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">驾驶员从业资格证<font color="red">*</font></td>
       	   <td class="table-td"  width="35%">
            <input type="text" class="input-text" style="width:90%;"  id="driverQuaCertNum"  name="driverQuaCertNum" value="${entity.driverQuaCertNum}"/>
           </td>
       		<td  width="15%" class="table-th">有效期<font color="red">*</font>	</td>
       	   <td class="table-td"  width="35%">
       	 	<span id="sp_driverQuaCertNumValidity" ></span>
            <input type="hidden" id="hid_driverQuaCertNumValidity" value="${entity.driverQuaCertNumValidity}"/>
           </td>
       </tr>
       
       <tr id="tr_dirverType" <c:choose><c:when test="${entity.type==1|| empty entity.type}">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">准驾类型<font color="red">*</font></td>
       		<td colspan="3" class="table-td">
       			<select id='driverType' name='driverType'  style="width:80%;" datatype="*">
       			    <option value="">请选择</option>
       				<option value="A1" <c:if test="${entity.driverType eq 'A1' }"> selected="selected"</c:if>>A1</option>
	        	    <option value="A2" <c:if test="${entity.driverType eq 'A2' }"> selected="selected"</c:if>>A2</option>
	        	    <option value="B1" <c:if test="${entity.driverType eq 'B1' }"> selected="selected"</c:if>>B1</option>
	        	    <option value="B2" <c:if test="${entity.driverType eq 'B1' }"> selected="selected"</c:if>>B2</option>
	        	    <option value="C1" <c:if test="${entity.driverType eq 'C1' }"> selected="selected"</c:if>>C1</option>
	        	    <option value="C2" <c:if test="${entity.driverType eq 'C2' }"> selected="selected"</c:if>>C2</option>
	        	    <option value="C3" <c:if test="${entity.driverType eq 'C3' }"> selected="selected"</c:if>>C3</option>
	        	    <option value="C4" <c:if test="${entity.driverType eq 'C4' }"> selected="selected"</c:if>>C4</option>
       			</select>
       		</td>
       </tr>
        
       
       <tr id="tr_superCargoNum" <c:choose><c:when test="${entity.type==1||entity.type==2 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">押运员从业资格证<span id="sp_superCargo_font"><font color="red">*</font></span></td>
           	<td class="table-td"  width="35%">
           	<input type="text" class="input-text" style="width:90%;" id="superCargoNum"  name="superCargoNum" value="${entity.superCargoNum }"/>
           	</td>
       		<td  width="15%" class="table-th">有效期<font color="red">*</font></td>
       	 	<td class="table-td"  width="35%">
       	 		<span id="sp_superCargoNumValidity" ></span>
            	<input type="hidden"   id="hid_superCargoNumValidity" value="${entity.superCargoNumValidity}"/>
            </td>
       </tr>
       
        <tr id="tr_safetyOfficerNum" <c:choose><c:when test="${entity.type==3 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">安管员从业资格证<font color="red">*</font></td>
           	<td class="table-td"  width="35%">
           	<input type="text" class="input-text" style="width:90%;" id="safetyOfficerNum"  name="safetyOfficerNum" value="${entity.safetyOfficerNum }"/>
           	</td>
       		<td  width="15%" class="table-th">有效期<font color="red">*</font></td>
       	 	<td class="table-td"  width="35%">
       	 		<span id="sp_safetyOfficerNumValidity" ></span>
            	<input type="hidden"   id="hid_safetyOfficerNumValidity" value="${entity.safetyOfficerNumValidity}"/>
            </td>
       </tr>
        <tr id="tr_mainPersonResNum" <c:choose><c:when test="${entity.type==4 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">主要主负责人从业资格证<font color="red">*</font></td>
           	<td class="table-td"  width="35%">
           	<input type="text" class="input-text" style="width:90%;" id="mainPersonResNum"  name="mainPersonResNum" value="${entity.mainPersonResNum }"/>
           	</td>
       		<td  width="15%" class="table-th">有效期<font color="red">*</font></td>
       	 	<td class="table-td"  width="35%">
       	 		<span id="sp_mainPersonResNumValidity" ></span>
            	<input type="hidden"   id="hid_mainPersonResNumValidity" value="${entity.mainPersonResNumValidity}"/>
            </td>
       </tr>
        <tr id="tr_loadUnloadManNum" <c:choose><c:when test="${entity.type==5 }">style="display:'';"</c:when><c:otherwise>style="display:none"</c:otherwise> </c:choose>>
       		<td  width="15%" class="table-th">装卸管理员从业资格证<font color="red">*</font></td>
           	<td class="table-td"  width="35%">
           	<input type="text" class="input-text" style="width:90%;" id="loadUnloadManNum"  name="loadUnloadManNum" value="${entity.loadUnloadManNum }"/>
           	</td>
       		<td  width="15%" class="table-th">有效期<font color="red">*</font></td>
       	 	<td class="table-td"  width="35%">
       	 		<span id="sp_loadUnloadManNumValidity" ></span>
            	<input type="hidden"   id="hid_loadUnloadManNumValidity" value="${entity.loadUnloadManNumValidity}"/>
            </td>
       </tr>
     
       <tr>
       		<td  width="15%" class="table-th">企业聘用限期</td>
       		<td width="20%"	class="table-td">
       			<input type="text" class="input-text" style="width:90%;" id="txt_employTime"  name="employTime" value="${entity.employTime }"/>年
       		</td>
       		<td  width="15%" class="table-th">责任状限期</td>
       		<td width="20%"	class="table-td">
       			<input type="text" class="input-text" style="width:90%;" id="txt_dutyTime"  name="dutyTime" value="${entity.dutyTime }"/>年
       		</td>
       </tr>
      <tr>
       <td   width="15%" class="table-th" >现住地址<font color="red">*</font></td>
	       <td    class="table-td"  colspan="3"> 
			    <textArea id="address"  class="textarea" style="width:98%;" cols="80" rows="2" name="address"  maxlength="100"   datatype="*" >${entity.address }</textArea>
	       </td>
	    </tr>
     <tr>
      <td width="15%" class="table-th">备注</td>
	       <td class="table-td" colspan="3">
	           <textArea id="remark"  class="textarea" style="width:98%;" cols="85" rows="3" name="remark"  maxlength="500" >${entity.remark }</textArea>
	       </td>
     </tr>
	 </tbody>
  </table>
   <input type="hidden" id="id"  name="id" value="${entity.id}" />
  </form>
  </div>
  <script type="text/javascript" src="${ctx}/js/app-web/biz/member/memberForm.js"></script>
  </body>
  </html>
  